#include "Text.hpp"

namespace rgui
{

Text::Text(const std::wstring &str, const rgui::vec2f &position) : 
	mString(str),
	mPosition(position),
	mAlignmentX(Text::AlignmentX::LEFT),
	mAlignmentY(Text::AlignmentY::TOP)
{

}

const std::wstring& Text::getString()
{
	return mString;
}

const rgui::vec2f& Text::getPosition()
{
	return mPosition;
}

std::pair<Text::AlignmentX, Text::AlignmentY> Text::getAlignment()
{
	return std::make_pair(mAlignmentX, mAlignmentY);
}

void Text::setString(const std::wstring &str)
{
	mString = str;
}

void Text::setPosition(const rgui::vec2f &position)
{
	mPosition = position;
}

void Text::setAlignment(Text::AlignmentX alignmentX, Text::AlignmentY alignmentY)
{
	mAlignmentX = alignmentX;
	mAlignmentY = alignmentY;
}

}